package com.cmcc.passenger;

import androidx.appcompat.app.AppCompatActivity;

import java.util.ArrayList;
import java.util.List;

public class AppManager {
    private static List<AppCompatActivity> list = new ArrayList<>();
    public static void add(AppCompatActivity activity){
        list.add(activity);
    }
    public static void finishAll(){
       if(list.size()>0){
           for (int i = 0; i <list.size() ; i++) {
               list.get(i).finish();
           }
       }
    }
}
